<?php
/* @var $this JamaahController */
/* @var $model Jamaah */
Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#jamaah-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<?//php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'jamaah-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id_laskar',
		'nama',
		'alamat_ktp',
		'no_ktp',
		'tempat_lahir',
		/*
		'tgl_lahir',
		'pekerjaan',
		'pekerjaan_lain',
		'hp1',
		'hp2',
		'tlp_rumah',
		'pin_bb',
		'email',
		'alamat_domisili',
		'sadziliyah',
		'qodiriyah',
		'lama_suluk',
		'id_kelompok',
		'status',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
